import 'package:flutter/material.dart';

class TextDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Container(
        color: const Color.fromARGB(255, 255, 255, 255),
        child: Center(
            child: Column(
          mainAxisSize: MainAxisSize.min, //最小主轴高度
          children: <Widget>[
            Text("去下划线+默认样式",
                style:
                    TextStyle(fontSize: 18.0, decoration: TextDecoration.none)),
            Text(
              "红色+黑色删除线(点线)",
              style: TextStyle(
                  fontSize: 18.0,
                  fontWeight: FontWeight.w300,
                  color: Color.fromARGB(255, 255, 0, 0),
                  decorationColor: Color.fromARGB(255, 0, 0, 0),
                  decorationStyle: TextDecorationStyle.dotted,
                  decoration: TextDecoration.lineThrough),
            ),
            Text(
              "红色+黑色删除线(双线)",
              style: TextStyle(
                  fontSize: 18.0,
                  fontWeight: FontWeight.w300,
                  color: Color.fromARGB(255, 255, 0, 0),
                  decorationColor: Color.fromARGB(255, 0, 0, 0),
                  decorationStyle: TextDecorationStyle.dashed,
                  decoration: TextDecoration.lineThrough),
            ),
            Text(
              "红色+黑色删除线(实线)",
              style: TextStyle(
                  fontSize: 18.0,
                  fontWeight: FontWeight.w300,
                  color: Color.fromARGB(255, 255, 0, 0),
                  decorationColor: Color.fromARGB(255, 0, 0, 0),
                  decorationStyle: TextDecorationStyle.solid,
                  decoration: TextDecoration.lineThrough),
            ),
            Text(
              "红色+黑色删除线(双线)",
              style: TextStyle(
                  fontSize: 18.0,
                  fontWeight: FontWeight.w300,
                  color: Color.fromARGB(255, 255, 0, 0),
                  decorationColor: Color.fromARGB(255, 0, 0, 0),
                  decorationStyle: TextDecorationStyle.double,
                  decoration: TextDecoration.lineThrough),
            ),
            Text(
              "红色+黑色强调线underline(实线)",
              style: TextStyle(
                  fontSize: 18.0,
                  fontWeight: FontWeight.w300,
                  color: Color.fromARGB(255, 255, 0, 0),
                  decorationColor: Color.fromARGB(255, 0, 0, 0),
                  decorationStyle: TextDecorationStyle.solid,
                  decoration: TextDecoration.underline),
            ),
            Text(
              "红色+黑色上划线overline(实线)",
              style: TextStyle(
                  fontSize: 18.0,
                  fontWeight: FontWeight.w300,
                  color: Color.fromARGB(255, 255, 0, 0),
                  decorationColor: Color.fromARGB(255, 0, 0, 0),
                  decorationStyle: TextDecorationStyle.solid,
                  decoration: TextDecoration.overline),
            ),
          ],
        )));
  }
}
